module.exports = {
	success(title, complete) {
		uni.showToast({
			title: title,
			duration: 2000,
			complete: () => {
				if (complete) {
					setTimeout(() => {
						complete()
					}, 500)
				}
			}
		})
	},
	
	show(title, complete) {
		uni.showToast({
			title: title,
			icon: "none",
			duration: 2000,
			complete: () => {
				if (complete) {
					setTimeout(() => {
						complete()
					}, 500)
				}
			}
		})
	}
}